package co.crossoft.domain;

import java.io.Serializable;
import java.util.Date;

public class WorkCenter implements Serializable {
    private String handle;

    private String plant;

    private String workCenter;

    private String description;

    private String statusFk;

    private String canBeReleasedTo;

    private String wcCategory;

    private String wcType;

    private Date dateCreate;

    private Date dateUpdate;

    private String assignmentEnforcement;

    private static final long serialVersionUID = 1L;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getHandle() {
        return handle;
    }

    public void setHandle(String handle) {
        this.handle = handle == null ? null : handle.trim();
    }

    public String getPlant() {
        return plant;
    }

    public void setPlant(String plant) {
        this.plant = plant == null ? null : plant.trim();
    }

    public String getWorkCenter() {
        return workCenter;
    }

    public void setWorkCenter(String workCenter) {
        this.workCenter = workCenter == null ? null : workCenter.trim();
    }

    public String getStatusFk() {
        return statusFk;
    }

    public void setStatusFk(String statusFk) {
        this.statusFk = statusFk == null ? null : statusFk.trim();
    }

    public String getCanBeReleasedTo() {
        return canBeReleasedTo;
    }

    public void setCanBeReleasedTo(String canBeReleasedTo) {
        this.canBeReleasedTo = canBeReleasedTo == null ? null : canBeReleasedTo.trim();
    }

    public String getWcCategory() {
        return wcCategory;
    }

    public void setWcCategory(String wcCategory) {
        this.wcCategory = wcCategory == null ? null : wcCategory.trim();
    }

    public String getWcType() {
        return wcType;
    }

    public void setWcType(String wcType) {
        this.wcType = wcType == null ? null : wcType.trim();
    }

    public Date getDateCreate() {
        return dateCreate;
    }

    public void setDateCreate(Date dateCreate) {
        this.dateCreate = dateCreate;
    }

    public Date getDateUpdate() {
        return dateUpdate;
    }

    public void setDateUpdate(Date dateUpdate) {
        this.dateUpdate = dateUpdate;
    }

    public String getAssignmentEnforcement() {
        return assignmentEnforcement;
    }

    public void setAssignmentEnforcement(String assignmentEnforcement) {
        this.assignmentEnforcement = assignmentEnforcement == null ? null : assignmentEnforcement.trim();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        WorkCenter other = (WorkCenter) that;
        return (this.getHandle() == null ? other.getHandle() == null : this.getHandle().equals(other.getHandle()))
                && (this.getPlant() == null ? other.getPlant() == null : this.getPlant().equals(other.getPlant()))
                && (this.getWorkCenter() == null ? other.getWorkCenter() == null : this.getWorkCenter().equals(other.getWorkCenter()))
                && (this.getDescription() == null ? other.getDescription() == null : this.getDescription().equals(other.getDescription()))
                && (this.getStatusFk() == null ? other.getStatusFk() == null : this.getStatusFk().equals(other.getStatusFk()))
                && (this.getCanBeReleasedTo() == null ? other.getCanBeReleasedTo() == null : this.getCanBeReleasedTo().equals(other.getCanBeReleasedTo()))
                && (this.getWcCategory() == null ? other.getWcCategory() == null : this.getWcCategory().equals(other.getWcCategory()))
                && (this.getWcType() == null ? other.getWcType() == null : this.getWcType().equals(other.getWcType()))
                && (this.getDateCreate() == null ? other.getDateCreate() == null : this.getDateCreate().equals(other.getDateCreate()))
                && (this.getDateUpdate() == null ? other.getDateUpdate() == null : this.getDateUpdate().equals(other.getDateUpdate()))
                && (this.getAssignmentEnforcement() == null ? other.getAssignmentEnforcement() == null : this.getAssignmentEnforcement().equals(other.getAssignmentEnforcement()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getHandle() == null) ? 0 : getHandle().hashCode());
        result = prime * result + ((getPlant() == null) ? 0 : getPlant().hashCode());
        result = prime * result + ((getWorkCenter() == null) ? 0 : getWorkCenter().hashCode());
        result = prime * result + ((getDescription() == null) ? 0 : getDescription().hashCode());
        result = prime * result + ((getStatusFk() == null) ? 0 : getStatusFk().hashCode());
        result = prime * result + ((getCanBeReleasedTo() == null) ? 0 : getCanBeReleasedTo().hashCode());
        result = prime * result + ((getWcCategory() == null) ? 0 : getWcCategory().hashCode());
        result = prime * result + ((getWcType() == null) ? 0 : getWcType().hashCode());
        result = prime * result + ((getDateCreate() == null) ? 0 : getDateCreate().hashCode());
        result = prime * result + ((getDateUpdate() == null) ? 0 : getDateUpdate().hashCode());
        result = prime * result + ((getAssignmentEnforcement() == null) ? 0 : getAssignmentEnforcement().hashCode());
        return result;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}